xen/arm: Fix regression after commit d963923
authorJulien Grall <julien.grall@linaro.org>
Mon, 9 Dec 2013 18:34:10 +0000 (18:34 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 10 Dec 2013 09:27:36 +0000 (09:27 +0000)
commit3a5767a869cc7c6a1072014fc03a7b7ba3f92bc0
tree2638ab34fc41ba0af5d3394886133bf3f7c2d125
parentd96392361cd05a66b385f0153e398128b196e480
xen/arm: Fix regression after commit d963923

The commit d963923  "xen: arm: correct return value of
raw_copy_{to/from}_guest_*, raw_clear_guest" doesn't permit to boot guest
on Xen ARM.

Remove the stray semicolon from the end of the if statement.

Also we want to get the right rc in the error arrays, so we need to do the
copy_to_guest_offset before checking the rc returned by
xenmem_add_to_physmap_one.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- expanded commit log ]
xen/arch/arm/mm.c